package com.toKnow.service;


import com.toKnow.model.dto.AuthorInfoDTO;
import com.toKnow.model.entity.Article;
import com.toKnow.model.entity.Source;
import com.toKnow.model.vo.UserInfoVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    public List<Article> getCollection(Integer userId, Integer page);
    public List<Article> getArticleByAuthor(Integer userId, Integer page);
    public List<Article> getArticleByBrowseHistory(Integer userId, Integer page);
    public List<Source> getSourceByAuthor(Integer userId, Integer page);
    public List<Source> getSourceByBrowseHistory(Integer userId, Integer page);
    public List<String> getSearchHistory(Integer userId);
    public AuthorInfoDTO getAuthorInfo(Integer userId, Integer authorId);
    public Boolean checkFollow(Integer userId, Integer authorId);
    public Boolean follow(Integer userId, Integer authorId);
    public Boolean unfollow(Integer userId, Integer authorId);
    public List<Integer> getFollowing(Integer userId, Integer page);
}
